package com.offcn.utils;

import com.offcn.entity.Product;

public class CarItems {

    //购物车列表的商品
    private Product product;

    //购物车列表的数量
    private int  quantity;

    //每种商品结算时的总价钱
    private double cost;

    public double getCost() {
        return cost;
    }
    public void setCost(double cost) {
        this.cost = cost;
    }
    public Product getProduct() {
        return product;
    }
    public void setProduct(Product product) {
        this.product = product;
    }
    public int getQuantity() {
        return quantity;
    }
    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }
    @Override
    public String toString() {
        return "CarItems [product=" + product + ", quantity=" + quantity + ", cost=" + cost + "]";
    }

}
